package me.helllp.bootman.back.config;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import me.helllp.bootman.common.base.BaseController;
import me.helllp.bootman.common.base.BaseReturn;
import me.helllp.bootman.common.base.ErrorCodeEnum;
import me.helllp.bootman.common.utils.ResultUtil;

/**
 * 全局公用的控制器
 *
 */
@RestController
@RequestMapping("/comm")
public class CommonController extends BaseController{
	
	@RequestMapping(value = "/404" , method = {RequestMethod.GET,RequestMethod.POST})
	public BaseReturn html404(){
		return ResultUtil.genResultByEnums(ErrorCodeEnum.SYS_HTTP404, "");
	}
	
	@RequestMapping(value = "/500" , method = {RequestMethod.GET,RequestMethod.POST})
	public BaseReturn html500(){
		return ResultUtil.genResultByEnums(ErrorCodeEnum.SYS_HTTP500, "");
	}
}
